<?php

/**
 * MyHammer IndexedMemcache
 *
 * LICENSE
 *
 * This source file is subject to the GNU General Public License Version 3
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.myhammer.de/opensource/license/gpl.txt
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to opensource@myhammer.de so we can send you a copy immediately.
 *
 * @category   MyHammer
 * @package    MyHammer_IndexedMemcache
 * @subpackage example04_importFromCsvFile.php
 * @license    http://www.myhammer.de/opensource/license/gpl.txt GNU General Public License Version 3
 * @version    1.0
 * @author     Steven Berg <berg@myhammer.de>
 */

require_once '../../classes/class.autoloader.php';
require_once 'class.testModel.php';

// flush Memcache
cMemCache::flush();

// import from csvfile
$oCsvImporter = new cCsvImporter();
$iImports = $oCsvImporter->csvImport('cTestModel', 'test.csv', ';');
cVardump::dump($iImports);